import type { IPost } from '@/interfaces';
import type { TMetadata } from '@/types';
import PostItem from '@/app/[locale]/common/post/item';

export default function PostList({
  items,
  metadata,
}: {
  items: IPost[];
  metadata: TMetadata;
}) {
  return (
    <>
      {items.map((item) => {
        return <PostItem key={item.id} item={item} metadata={metadata} />;
      })}
    </>
  );
}
